namespace Server.DTOs
{
    /// <summary>
    /// 上传信息类，包含文件和用户相关信息
    /// </summary>
    public class UploadInfo
    {
        public string FileName { get; set; } = string.Empty;
        public long FileSize { get; set; }
        public string FileType { get; set; } = string.Empty;
        public DateTime CreationTime { get; set; }
        public DateTime ModifiedTime { get; set; }
        public DateTime UploadTime { get; set; }
        public string UploadIp { get; set; } = string.Empty;
        public string UserId { get; set; } = string.Empty;
    }

    /// <summary>
    /// 文件信息类，用于文件下载请求
    /// </summary>
    public class FileInfo
    {
        public long FileId { get; set; }
        public string FileName { get; set; } = string.Empty;
        public string FilePath { get; set; } = string.Empty;
        public string UserId { get; set; } = string.Empty;
        public long FileOwnerId { get; set; }
    }

    /// <summary>
    /// FTP上传凭证类，包含FTP服务器连接信息
    /// </summary>
    public class FtpUploadCredentials
    {
        public string FtpServerUrl { get; set; } = string.Empty;
        public string FtpUsername { get; set; } = string.Empty;
        public string FtpPassword { get; set; } = string.Empty;
        public string FtpDirectoryPath { get; set; } = string.Empty;
    }
}